/**
 * 
 */
package com.dycn.posdashboard.data;

import java.io.Serializable;

/**
 * @author gongqiyi
 *
 */
public class BranchInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4014866097850690586L;
	private String branchNo;
	private String branchName;
	public String getBranchNo() {
		return branchNo;
	}
	public void setBranchNo(String branchNo) {
		this.branchNo = branchNo;
	}
	public String getBranchName() {
		return branchName;
	}
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}
	
	@Override
    public boolean equals (Object in) {
        if(in == null) {
        	return false;
        }else if( in instanceof BranchInfo) {
        	BranchInfo inObj = (BranchInfo) in;
        	if(branchNo!=null&&branchNo.equals(inObj.getBranchNo())){
        		return true;
        	}else{
        		return false;
        	}
        }else {
        	return false;
        }       
    } 
	
}
